
package Modelo;


import java.awt.Color;
import java.awt.Graphics;


public class Pared extends Figuras{

	private static final long serialVersionUID = 1L;

	public Pared(Integer id0, Integer x0,Integer y0,Integer w0,Integer h0,Color c,Integer vida, Boolean estado){

	     super(id0, x0,y0,h0,w0,c,vida,estado);
	}

        @Override
        public void dibujar(Graphics grafico) {
		
            grafico.setColor(color);
            grafico.fillRect(x, y, ancho, alto);
	}


	@Override
	public void colision(Figuras figura) {
		 /*figura.colision(this); */

            System.out.println("Soy " + this.getID() + " y me choco " + figura.getID()  );
	}

        @Override
        public void colision(Autito movil) {

            throw new UnsupportedOperationException("Not supported yet.");
        }

        @Override
        public void colision(Pared pared) {

            throw new UnsupportedOperationException("Not supported yet.");
        }
        
        @Override
        public void colision(Policia policia) {
            policia.x = policia.xAnterior;
            policia.y = policia.yAnterior;
            System.out.println("!!!!! Soy " + this.getID() + " y me choco " + policia.getID()  );
         }
        

        @Override
        public void colision(Base base) {

            throw new UnsupportedOperationException("Not supported yet.");
        }

        @Override
        public void colision(Destino destino) {

            throw new UnsupportedOperationException("Not supported yet.");
        }

	




}
